package com.corpdata.activiti.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.corpdata.activiti.service.ActivitiService;

@Controller
@RequestMapping("activiti111/")
public class ActivitiController {
	
	@Autowired
	private ActivitiService activitiService;
	
	@GetMapping("getalltasks")
	@ResponseBody
	public String getAllTasks(){
		return activitiService.getAllTasks("");
	}
	
	@GetMapping("getalldeploymentprocess")
	@ResponseBody
	public String getAllDeploymentProcess(){
		return activitiService.getAllDeploymentProcess();
	}
	
}
